// 该文件负责所有的公共组件的全局注册
// vue插件机制: Vue.use
import PageTools from './PageTools'
import UploadExcel from '@/components/UploadExcel'
import ImageUpload from '@/components/ImageUpload'

const components = [PageTools, UploadExcel, ImageUpload]
export default {
  install(Vue) {
    // Vue.component('PageTools', PageTools)
    components.forEach(comp => {
      Vue.component(comp.name, comp)
    })
  }
}
